package org.zhq.service;

import org.zhq.pojo.bo.ShopCartBO;
import org.zhq.pojo.bo.SubmitOrderBO;
import org.zhq.pojo.vo.OrderVO;

import java.util.List;

public interface OrderService {
    /**
     * 用于创建订单相关信息
     *
     * @param shopCartBOList
     * @param submitOrderBO
     */
    OrderVO createOrder(List<ShopCartBO> shopCartBOList, SubmitOrderBO submitOrderBO);

    /**
     * 修改订单状态
     * @param orderId
     * @param orderStatus
     */
    void updateOrderStatus(String orderId,Integer orderStatus);

    /**
     * 关闭订单
     */
    void closeOrder();
}
